﻿<Window x:Class="SketchWizardPlayer.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:SketchWizardPlayer"
    xmlns:WozLib="clr-namespace:WozLib;assembly=WozLib"
    xmlns:WozLib-Ink="clr-namespace:WozLib.UI.Ink;assembly=WozLib"
    xmlns:WozLib_Controls="clr-namespace:WozLib.UI.Controls;assembly=WozLib"
    Title="SketchWizard Player"
    SizeToContent="WidthAndHeight"
    x:Name="_ClientWindow"
    Width="400"
    Height="300"
    >
    <Grid>
      <Grid.Background>
        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
          <GradientStop Color="AliceBlue" Offset="0"/>
          <GradientStop Color="LightBlue" Offset="1"/>
        </LinearGradientBrush>
      </Grid.Background>
      <DockPanel>
        <ToolBarTray DockPanel.Dock="Top" x:Name="_ToolBarTray" >
          <ToolBar>
            <Button Click="Load_Click">Load</Button>
            <Button Command="ApplicationCommands.Close">Exit</Button>
          </ToolBar>
          <ToolBar>
            <CheckBox x:Name="_FullScreenCheck">FullScreen</CheckBox>
          </ToolBar>
          <ToolBar>
            <CheckBox x:Name="_NoDelayCheck" IsChecked="{Binding ElementName=_ClientWindow, Path=NoDelays, Mode=TwoWay}" >No Delay</CheckBox>
            <RadioButton x:Name="_PlayRadio" IsChecked="{Binding ElementName=_ClientWindow, Path=IsNotPaused}">Play</RadioButton>
            <RadioButton x:Name="_PauseRadio" IsChecked="{Binding ElementName=_ClientWindow, Path=IsPaused}">Pause</RadioButton>
            <Button x:Name="_RestartButton">Restart</Button>
          </ToolBar>
          <ToolBar>
            <TextBlock>(press any F-Key to collapse/uncollapse this toolbar)</TextBlock>
            <Button Click="Hide_Click">Hide ToolBar</Button>
          </ToolBar>
        </ToolBarTray>

        <Grid>
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
          </Grid.ColumnDefinitions>

          <ToolBarTray Grid.Column="0" MinWidth="70" Orientation="Vertical" Background="Transparent" Margin="2 5 2 0">
            <WozLib_Controls:ToolSelectToolbar x:Name="_ToolSelectToolbar"/>
          </ToolBarTray>

          <Canvas x:Name="_InkOverlayCanvas" Grid.Column="1" Width="{Binding ElementName=_ClientInkCanvas, Path=Width}" Height="{Binding ElementName=_ClientInkCanvas, Path=Height}">
            <WozLib-Ink:ClientInkCanvas x:Name="_ClientInkCanvas" Canvas.Left="0.0" Canvas.Top="0.0"  Width="1000" Height="1000" >
            </WozLib-Ink:ClientInkCanvas>
          </Canvas>
        </Grid>
      </DockPanel>
    </Grid>
</Window>
